<?php echo $this->render('admin/head.phtml');?>
<script src="/static/js/jquery.validate.js"></script>
<script src="/static/js/messages_cn.js" charset="UTF-8"></script>
<div style="text-align: left;" class="big-text">
  添加分类：
  
    <form class="form_validate" action="/admin/insert-category" method="post">
      <input type="hidden" name="id" value="<?php echo $this->category->get('id');?>">
      <table class="formTable">
	<tr>
	  <td>父分类：</td>
	  <td>
	    <select name="parent">
	      <?php echo make_options($this->parents, $this->category->get("parent")); ?>
	    </select>
	  </td>
	</tr>
	<tr>
	  <td>分类名称：</td>
	  <td><input type="text" name="name" class="required" value="<?php echo $this->category->get('name');?>"></td>
	</tr>
	<tr>
	  <td>&nbsp;</td>
	  <td><input type="submit" name="" value="保存"></td>
	</tr>	
      </table>
    </form>
</div>
<?php echo $this->render('admin/foot.phtml');?>

